package com.gdziarmaga.webshop.book.model;

public class BookShortInfo implements java.io.Serializable {
	private static final long serialVersionUID = 1L;

	private long book_id;
	private String title;
	private String short_descripton;
	private String icon;
	private float price;

	public long getBook_id() {
		return book_id;
	}

	public void setBook_id(long book_id) {
		this.book_id = book_id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getShort_descripton() {
		return short_descripton;
	}

	public void setShort_descripton(String short_descripton) {
		this.short_descripton = short_descripton;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (book_id ^ (book_id >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		BookShortInfo other = (BookShortInfo) obj;
		if (book_id != other.book_id)
			return false;
		return true;
	}
	

}